﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/*
 * @author: Tran Minh Vuong - 0934103448 - tmvuong89@gmail.com
 * @date: 30/04/2012
 */

namespace Demo3Layer_Payment.Data_Tranfer_Object
{
    class BillDTO
    {
        #region "Attribute"
        private string strBillID = string.Empty;
        private string strCustomersID = string.Empty;
        private DateTime dateOrderDate = DateTime.MinValue;
        private float floMoneySum = float.MinValue;
        List<BillDetailDTO> listBillDetail = new List<BillDetailDTO>();
        #endregion

        #region "Property"
        /// <summary>
        /// Property of attribute strBillID
        /// </summary>
        public string StrBillID
        {
            get { return strBillID; }
            set { strBillID = value; }
        }
        /// <summary>
        /// Property of attribute strCustomersID
        /// </summary>
        public string StrCustomersID
        {
            get { return strCustomersID; }
            set { strCustomersID = value; }
        }
        /// <summary>
        /// Property of attribute dateOrderDate
        /// </summary>
        public DateTime DateOrderDate
        {
            get { return dateOrderDate; }
            set { dateOrderDate = value; }
        }
        /// <summary>
        /// Property of attribute floMoneySum
        /// </summary>
        public float FloMoneySum
        {
            get { return floMoneySum; }
            set { floMoneySum = value; }
        }
        /// <summary>
        /// Property of attribute listBillDetail
        /// </summary>
        internal List<BillDetailDTO> ListBillDetail
        {
            get { return listBillDetail; }
            set { listBillDetail = value; }
        }
        #endregion

        #region"Constructor method"
        /// <summary>
        /// Constructor method default object BillDTO' class
        /// </summary>
        public BillDTO()
        {
            this.StrBillID = string.Empty;
            this.StrCustomersID = string.Empty;
            this.DateOrderDate = DateTime.MinValue;
            this.FloMoneySum = float.MinValue;
            this.ListBillDetail = new List<BillDetailDTO>();
        }
        #endregion
    }
}
